package com.zzyang.c2c.social.govern.reviewer.dao.impl;

import com.zzyang.c2c.social.govern.reviewer.dao.ReviewerTaskStatusDAO;
import com.zzyang.c2c.social.govern.reviewer.domain.ReviewerTaskStatus;
import com.zzyang.c2c.social.govern.reviewer.mapper.ReviewerTaskStatusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * ReviewerTaskStatusDAOImpl
 *
 * @author zhuoziyang
 * @date 2021/7/27 8:01
 */
@Repository
public class ReviewerTaskStatusDAOImpl implements ReviewerTaskStatusDAO {

    @Autowired
    private ReviewerTaskStatusMapper reviewerTaskStatusMapper;

    @Override
    public void add(ReviewerTaskStatus reviewerTaskStatus) {
        reviewerTaskStatusMapper.insert(reviewerTaskStatus);
    }

    @Override
    public void updateStatus(ReviewerTaskStatus reviewerTaskStatus) {
        reviewerTaskStatusMapper.updateStatus(reviewerTaskStatus);
    }

}
